from enum import Enum


class ShipAttr(Enum):
    """舰船属性名"""
    CAMP = "camp"
    """阵营"""
    NAME = "name"
    """舰名"""
    TYPE = "ship_type"
    """舰船类型"""
    RARITY = "ship_rarity"
    """舰船稀有度"""
    AFFINITY = "affinity"
    """好感度"""
    OATH = "oath"
    """誓约"""
    MORALE = "morale"
    """心情"""
    LEVEL = "level"
    """等级"""
    ENHANCEMENT = "enhancement"
    """强化"""
    LIMIT_BREAK = "limit_break"
    """突破"""
    RETROFIT = "retrofit"
    """改造"""
    HP = "hp"
    """耐久"""
    ARMOR = "armor_type"
    """装甲类型"""
    RLD = "rld"
    """装填"""
    FP = "fp"
    """炮击"""
    TRP = "trp"
    """雷击"""
    EVA = "eva"
    """机动"""
    AA = "aa"
    """防空"""
    AVI = "avi"
    """航空"""
    ACC = "acc"
    """命中"""
    ASW = "asw"
    """反潜"""
    SPD = "spd"
    """航速"""
    LCK = "lck"
    """幸运"""
    COST = "cost"
    """消耗"""
    SKILLS = "skills"
    """技能"""
    POWER = "power"
    """综合性能"""
    SPECIAL_TYPE = "special_type"
    """特殊类型"""


class AffinityLevel(Enum):
    """舰船好感度等级"""
    UPSET = 1
    STRANGER = 1
    FRIENDLY = 1.01
    CRUSH = 1.03
    LOVE = 1.06
    OATH = 1.09
    MAX = 1.12


class ShipType(Enum):
    """舰船类型"""
    DD = '驱逐'
    DDG = '导驱'
    CL = '轻巡'
    CA = '重巡'
    CB = '超巡'
    BC = '战巡'
    BB = '战列'
    CVL = '轻航'
    CV = '航母'
    BBV = '航战'
    SSV = '潜母'
    BM = '重炮'
    SS = '潜艇'
    AR = '维修'
    AE = '运输'
    IX = '风帆'


class ArmorType(Enum):
    """装甲类型"""
    LIGHT = (1, '轻甲')
    MEDIUM = (2, '中甲')
    HEAVY = (3, '重甲')


class SpecialType(Enum):
    """舰船特殊类型"""
    NULL = '无'
    LAB = '科研'
    LITTLE = '小船'
    MUSE = 'μ'
    II = '2型'
